﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="EditZone.aspx.vb" Inherits="Phila.EditZone" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" cellpadding="2" cellspacing="2" align="center">
        <tr>
            <td>
                <h1>
                    Add/Edit Zones</h1>
                <div align="center">
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label></div>
                <fieldset>
                    <legend><b>Zone Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td width="250px" align="right">
                                <strong>Country</strong>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:DropDownList ID="cmbCategory" runat="server">
                                </asp:DropDownList><span class="red"> *</span>
                                <asp:RequiredFieldValidator ID="reqCategory" runat="server" 
                                    ControlToValidate="cmbCategory" Display="Dynamic" 
                                    ErrorMessage="&lt;br /&gt;Select Category" InitialValue="0" 
                                    ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>Zone Name </b>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" MaxLength="500" Width="200px"></asp:TextBox><span class="red"> *</span>
                                <asp:RequiredFieldValidator ID="reqName" runat="server" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Zone Name" 
                                    Font-Bold="False" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>Description</b>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:TextBox ID="txtDescription" runat="server" MaxLength="500" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>Thumbnail</b>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:FileUpload ID="fileUpload" runat="server" />
                                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateFileUpload"
                                    ValidationGroup="icon" ErrorMessage="Only .jpg,.gif Files Accept" Text="*" ControlToValidate="fileUpload"
                                    Display="Dynamic" SetFocusOnError="true" CssClass="red"></asp:CustomValidator>
                                <asp:Literal ID="ltrImg" runat="server"></asp:Literal>
                                <%--<asp:LinkButton ID="cmdRemove" runat="server"><u>Remove</u></asp:LinkButton>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <strong>IsActive</strong>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <strong>View Order</strong>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:TextBox ID="txtViewOrder" runat="server" Width="80px" Text="0"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="regVOrder" runat="server" 
                                    ControlToValidate="txtVieworder" ErrorMessage="&lt;br /&gt;Enter only Numeric value" 
                                    ValidationExpression="\d*[0-9]" 
                                    ValidationGroup="submit" Display="Dynamic" CssClass="red"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <fieldset>
                    <legend><b>Meta Details</b></legend>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td width="250px" align="right">
                                <b>Page Title </b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMTitle" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>Page Keywords</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMKeywords" runat="server" Width="200px" TextMode="MultiLine"
                                    Rows="5"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <b>Page Description</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMDescription" runat="server" Width="200px" TextMode="MultiLine"
                                    Rows="5"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <fieldset>
                    <table width="98%" align="center" cellpadding="2" cellspacing="2">
                        <tr>
                            <td>&nbsp;
                                
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                                
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="submit" CssClass="form-button" />&nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="form-button" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
</asp:Content>
